package com.pan.admin.module.api.lock;

import java.util.function.Supplier;

/**
 * API渠道余额操作锁
 *
 * @author caoxin
 */
public interface ApiKeyBalanceOperationLock {

    <T> T executeInLock(String apiClientId, Supplier<T> supplier);

    void executeInLock(String apiClientId, Runnable runnable);
}
